package com.hua.demo.edu.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
@Component
//,url = "http://110.42.223.151:8100"
@FeignClient(name = "local",fallback = callback.class) //调用的服务名称
public interface myown {
@GetMapping("demo/dept/list")
  public String getall();
}
